<%@ tag language="java" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ attribute name="action" type="java.lang.String" required="true" description="action"%>
<%@ attribute name="template" type="java.lang.String" description="模板地址"%>
  <style>
        .btn-add-1{
            position: absolute;
            top: 33px;
            left: 38x;
            width: 62px;
        }

        .btn-add-2{
            border:none;
            width: 60px;
        }
        .btn-add-3{
            display:inline-block;
            width: 60px;
            text-decoration: none;
            background-color:#826955;
            margin-left:10px;
        }
        .btnP{
            position: absolute;
            bottom:10px;
            left:130px;
        }
        .fileInp{
            width:330px;
            border: 1px solid #e0e0e0;
            -webkit-border-radius: 4px;
            -moz-border-radius: 4px;
            border-radius: 4px;
            line-height: 35px;
            padding-left: 2px;
        }
        #importDiv{
            width:330px;
            margin:30px auto;
        }
    </style>
    <script type="text/javascript">
      $('.btn-add-1').on('click',function(){
        $('.fileInp').click();
      });
    </script>
<%--  <div id="importDiv" style="display: none">
        <form id="importForm" action="${action}" method="post" enctype="multipart/form-data"
            style="padding-left:20px;text-align:center;"><br/>
            <input id="uploadFile" name="file" type="file" style="width:330px"/><br/><br/>　　
            <input id="btnImportSubmit" class="btn btn-primary" type="submit" value="   导    入   "/>
            <a href="${template}">下载模板</a>
            <p>"导入文件不能超过5M，仅允许导入“xls”或“xlsx”格式文件！"</p>
        </form>
    </div> --%>
    <div id="importDiv" style="display: none" >
    <body>
   <!-- <div class="middle myshop_middle" >  -->
        <form id="importForm" action="${action}" method="post" enctype="multipart/form-data">
            <p type="button" class="btn-add btn-add-1">浏览...</p>
            <input id="uploadFile" name="file" type="file" class="fileInp"/>　
            <div class="btnP">
            <input id="btnImportSubmit" class="btn-add btn-add-2" type="submit" value="导入"/>
            <a href="${template}" class="btn-add btn-add-3">下载模板</a>
            </div>
            <p style="margin-top:-10px;">"导入文件不能超过5M，仅允许导入“xls”或“xlsx”格式文件！"</p>
        </form>
        </body>
  <!--   </div> -->
 </div>
